﻿@{
    var session = this.Context.RequestServices.GetService(typeof(UserSession)) as UserSession;
    var user = ViewBag.User as Admin.CYT369.Com.DAL.Domains.SysUser;
}
@section styles{
    <link href="~/css/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/lib/jquery-easyui-1.8.8/themes/metro/easyui.css" rel="stylesheet" />
    <link href="~/lib/jquery-easyui-1.8.8/themes/icon.css" rel="stylesheet" />
    <link href="~/lib/jquery-easyui-1.8.8/themes/color.css" rel="stylesheet" />

    <link href="~/lib/ueditor1.4.3.3-utf8/themes/default/css/ueditor.min.css" rel="stylesheet" />

    <link href="~/css/file_icon.css" rel="stylesheet" />
    <link href="~/css/easyui-override.css" rel="stylesheet" />
    <link href="~/css/uploadfile.fs.css" rel="stylesheet" />
    <link href="~/css/viewer.min.css" rel="stylesheet" />
    <link href="~/css/index.css" rel="stylesheet" />
}

@section scripts{
    <script src="~/lib/jquery-easyui-1.8.8/jquery.easyui.min.js"></script>
    <script src="~/lib/jquery-easyui-1.8.8/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/lib/jquery-easyui-1.8.8/jquery.tree.ext.js"></script>
    <script src="~/lib/jquery-easyui-1.8.8/jquery.treegrid.ext.js"></script>
    <script src="~/lib/jquery-easyui-1.8.8/datagrid-groupview.js"></script>
    <script src="~/lib/jquery-easyui-1.8.8/datagrid-cellediting.js"></script>
    <script src="~/lib/jquery.form.js"></script>
    <script src="~/lib/ueditor1.4.3.3-utf8/ueditor.config.js"></script>
    <script src="~/lib/ueditor1.4.3.3-utf8/ueditor.all.min.js"></script>
    <script src="~/lib/jquery-upload-file-4.0.2/js/jquery.uploadfile.min.js"></script>
    <script src="~/lib/viewer-jquery.min.js"></script>
    <script src="~/js/easyui-tab-ext.js"></script>
    <script src="~/js/Common.js" type="text/javascript"></script>
    <script src="~/js/SystemSetting.js"></script>
    <script src="~/js/Formatter.js"></script>
    <script src="~/js/site.js"></script>
    <script src="~/js/Index.js"></script>
}

<div id="user-menu-ext" class="user-menu-ext">
    <ul>
        <li class="item" id="user-settting"><i class="fa fa-cog icon"></i>个人设置</li>
        <li class="item-line"></li>
        <li class="item" id="exit-system"><i class="fa fa-power-off icon"></i>退出系统</li>
    </ul>
</div>
<div id="ext-menus" class="ext-menus">
    <ul class="main-menus">
        @*扩展模块*@
    </ul>
</div>

<div id="main_layout" class="easyui-layout" fit="true">
    <div data-options="region:'north',border:false" class="TopPanel">
        <div class="SystemName">
            <span class="name"><i class="fa fa-envira icon"></i>@ViewBag.SYSTEM_NAME</span>
        </div>
        <ul class="top-main-menu">
        </ul>
        <ul class="RPanel">
            <li class="item PersonalInfo">
                @if (user != null)
                {
                    if (!string.IsNullOrEmpty(user.Avatar))
                    {
                        <img src="@user.Avatar" class="icon" />
                    }
                    else if (!string.IsNullOrEmpty(user.HeaderUrl))
                    {
                        <img src="@user.HeaderUrl" class="icon" />
                    }
                    else
                    {
                        var name = user.FullName;
                        if (!string.IsNullOrEmpty(name))
                        {
                            name = user.FullName.Substring(0, 1);
                        }
                        <div class="n_icon">@name</div>
                    }
                }
                else
                {
                    <img src="~/images/index/bug_320x320.jpg" class="icon" />
                }

                <div class="name">@(session != null ? session.FullName : String.Empty)</div>
                <div class="array"><i class="fa fa-caret-down"></i></div>
            </li>
            <li class="item">
                <i class="fa fa-envelope-o"></i>
            </li>
            <li class="item">
                <i class="fa fa-bell-o"></i>
            </li>
            <li class="item">
                <i class="fa fa-flag-o"></i>
            </li>
        </ul>
    </div>
    @*主页左边菜单导航栏*@
    <div id="main_layout_left_menu" data-options="region:'west',split:false,border:false,collapsedSize:20,collapsed:false" title="功能" class="LeftPanel min-scrollbar">
    </div>
    <div data-options="region:'center',border:false" class="ContentPanel">
    </div>
</div>

